import commonService from 'service/common'
export default {
  //请求技能组
    async getUserSkillGroup(data) {
        let dataObj = Object.assign({

        }, data)

        let paramsJson = {
           baseURL: '/webapiThird/',
            method: 'post',
            url: '/webapi/skill/list',
          data: dataObj,
          headers:{

          }
        }
        let jsondata = await commonService.asyncFetchData(paramsJson)
        return jsondata
    },
    //请求具体的技能组chengyuan
  async getUserSkillGroupMember(data) {
    let dataObj = Object.assign({
      'skillId':"",
    }, data)

    let paramsJson = {
      baseURL: '/webapiThird/',
      method: 'post',
      url: '/webapi/skill/usersWithState/',
      params: dataObj,
      headers:{ 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', 'X-Requested-With': 'XMLHttpRequest' }
    }
    let jsondata = await commonService.asyncFetchData(paramsJson)
    return jsondata
  },
  //请求具体的技能组chengyuan
  async allWithState(data) {
    let dataObj = Object.assign({

    }, data)

    let paramsJson = {
      baseURL: '/webapiThird/',
      method: 'post',
      url: '/webapi/skill/allWithState/',
      data: dataObj,
      headers:{

      }
    }
    let jsondata = await commonService.asyncFetchData(paramsJson)
    return jsondata
  },
  async getSleepReason(data) {
    let dataObj = Object.assign({

    }, data)

    let paramsJson = {
      baseURL: '/webapiThird/',
      method: 'post',
      url: '/webapi/restReason/list',
      data: dataObj,
      headers:{

      }
    }
    let jsondata = await commonService.asyncFetchData(paramsJson)
    return jsondata
  },
}
